'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const res = await uniCloud.getPhoneNumber({
		appid: '__UNI__EEB87D1',
		provider: 'univerify',
		// apiKey: 'f7af037db576955ad7fb8257d3f9d0a4', // 在开发者中心开通服务并获取apiKey
		// apiSecret: '78c7655bc426a896c14bfda618295547', // 在开发者中心开通服务并获取apiSecret
		access_token: event.access_token,
		openid: event.openid
	})
	return {
		code: 0,
		message: '获取手机号成功',
		data: res
	}
};